package com.ayf.payment.game.api.entity;

import com.ayf.payment.game.api.entity.base.BaseEntity;
import com.ayf.payment.game.api.type.AdditionalStatus;
import com.ayf.payment.game.api.type.YesAndNo;

import javax.persistence.Column;
import javax.persistence.Table;

@Table(name = "g_template_additional")
public class TemplateAdditional extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**
     * 模板id
     */
    @Column(name = "template_id")
    private String templateId;

    /**
     * 物品名称
     */
    @Column(name = "material_name")
    private String materialName;

    /**
     * 是否显示：'YES'是；'NO'否；默认'NO'
     */
    @Column(name = "is_show")
    private YesAndNo isShow;

    /**
     * 脚本命令
     */
    @Column(name = "script_command")
    private String scriptCommand;

    /**
     * 赠送比例：1RMB多少此物品
     */
    @Column(name = "donation_ratio")
    private Integer donationRatio;

    /**
     * 充值总数
     */
    private Integer totalCount;

    /**
     * 状态：'CLOSE'关闭,'AMOUNT'按金额赠送,'AMOUNT_CHANNEL'金额加渠道,'AMOUNT_ESCITATION'金额加激励,'AMOUNT_CHANNEL_ESCITATION'金额加渠道加激励
     */
    @Column(name = "additional_status")
    private AdditionalStatus additionalStatus;

    /**
     * 获取模板id
     *
     * @return template_id - 模板id
     */
    public String getTemplateId() {
        return templateId;
    }

    /**
     * 设置模板id
     *
     * @param templateId 模板id
     */
    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    /**
     * 获取物品名称
     *
     * @return material_name - 物品名称
     */
    public String getMaterialName() {
        return materialName;
    }

    /**
     * 设置物品名称
     *
     * @param materialName 物品名称
     */
    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    /**
     * 获取脚本命令
     *
     * @return script_command - 脚本命令
     */
    public String getScriptCommand() {
        return scriptCommand;
    }

    /**
     * 设置脚本命令
     *
     * @param scriptCommand 脚本命令
     */
    public void setScriptCommand(String scriptCommand) {
        this.scriptCommand = scriptCommand;
    }

    /**
     * 获取赠送比例：1RMB多少此物品
     *
     * @return donation_ratio - 赠送比例：1RMB多少此物品
     */
    public Integer getDonationRatio() {
        return donationRatio;
    }

    /**
     * 设置赠送比例：1RMB多少此物品
     *
     * @param donationRatio 赠送比例：1RMB多少此物品
     */
    public void setDonationRatio(Integer donationRatio) {
        this.donationRatio = donationRatio;
    }

    public YesAndNo getIsShow() {
        return isShow;
    }

    public void setIsShow(YesAndNo isShow) {
        this.isShow = isShow;
    }

    public AdditionalStatus getAdditionalStatus() {
        return additionalStatus;
    }

    public void setAdditionalStatus(AdditionalStatus additionalStatus) {
        this.additionalStatus = additionalStatus;
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }
}